#ifndef _DS18B20_H
#define _DS18B20_H

#include "public.h"

sbit DS18B20 = P3^7;

void DS18B20_reset(void);
unsigned char DS18B20_check(void);
unsigned char DS18B20_init(void);
void DS18B20_write_byte(unsigned char dat);
unsigned char DS18B20_read_bit(void);
unsigned char DS18B20_read_byte(void);
void DS18B20_start(void);
float DS18B20_read_temperature(void);

#endif
